solving quadratic equations with a leading coefficient different from one